/*
 * Copyright(c) 2018-? the original author[Wien(luweien@aliyun.com)] or authors.
 *
 */
package org.doll.it.nora.domain;

import java.util.List;

import org.doll.it.base.domain.BaseDO;
import org.springframework.data.mongodb.core.mapping.Document;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 存储每一次的提交，允许包含多条blob或tree
 * 
 * @author Wien(luweien@aliyun.com)
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
@Document
public class TreeDO extends BaseDO {

	private static final long serialVersionUID = -3085849841989662054L;

	/**
	 * blob的ids
	 */
	private List<Long> blobIds;

	/**
	 * 内嵌tree的ids
	 */
	private List<Long> treeIds;
}
